local UserInputService = game:GetService("UserInputService") local Players = game:GetService("Players") local localPlayer = Players.LocalPlayer UserInputService.InputBegan:Connect(function(input, gameProccesed) if gameProccesed then return else if input.KeyCode == Enum.KeyCode.LeftShift then humanoid = localPlayer.Character:WaitForChild("Humanoid") humanoid.WalkSpeed = 35 local animation = Instance.new("Animation") animation.AnimationId = "rbxassetid://04852997368" animation.Parent = humanoid loadedAnimation = humanoid:LoadAnimation(animation) loadedAnimation:Play() end end end) UserInputService.InputEnded:Connect(function(input, gameProccesed) if gameProccesed then return else if input.KeyCode == Enum.KeyCode.LeftShift then humanoid.WalkSpeed = 16 loadedAnimation:Stop() end end end)